package com.smarttest.common.util.mqtt.v1;

import org.msgpack.annotation.Message;

@Message
public class Gpsmsg {

    private int code;
    private String cmd;
    private int mode;
    private String deviceno;
    private String time;
    private double lng;
    private double lat;
    private int speed;
    private int course;
    private GpsStatus gpsStatus;
    private Temperature temperature;
    private boolean res;

    @Override
    public String toString() {
        return "Gpsmsg [code=" + code + ", cmd=" + cmd + ", mode=" + mode + ", deviceno=" + deviceno + ", time=" + time
                + ", lng=" + lng + ", lat=" + lat + ", speed=" + speed + ", course=" + course + ", gpsStatus=" + gpsStatus
                + ", temperature=" + temperature + ", res=" + res + "]";
    }

    public Gpsmsg() {
        gpsStatus = new GpsStatus();
        temperature = new Temperature();
    }

    public Gpsmsg(int code, String cmd, int mode, String deviceno, String time, double lng, double lat, int speed,
            int course, GpsStatus gpsStatus, Temperature temperature,boolean res) {
        super();
        this.code = code;
        this.cmd = cmd;
        this.mode = mode;
        this.deviceno = deviceno;
        this.time = time;
        this.lng = lng;
        this.lat = lat;
        this.speed = speed;
        this.course = course;
        this.gpsStatus = gpsStatus;
        this.temperature = temperature;
        this.res = res;
    }


    public boolean isRes() {
        return res;
    }

    public void setRes(boolean res) {
        this.res = res;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public String getDeviceno() {
        return deviceno;
    }

    public void setDeviceno(String deviceno) {
        this.deviceno = deviceno;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getCourse() {
        return course;
    }

    public void setCourse(int course) {
        this.course = course;
    }

    public GpsStatus getGpsStatus() {
        return gpsStatus;
    }

    public void setGpsStatus(GpsStatus gpsStatus) {
        this.gpsStatus = gpsStatus;
    }

    public Temperature getTemperature() {
        return temperature;
    }

    public void setTemperature(Temperature temperature) {
        this.temperature = temperature;
    }


}
